package com.gemo.demo.mapper;

import com.gemo.demo.entiy.Type;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TypeMapper {
    //查询所有
    @Select("select tid id,tname from news where status=1 group by tid")
    List<Type> selectAll();
}
